package com.lwm.service;

import com.github.pagehelper.PageInfo;
import com.lwm.domain.EarlyWarning;
import com.lwm.domain.ResponseResult;

import java.util.List;

public interface EarlyWarningService {
    /**
     * 保存
     *
     * @param earlyWarning 能效预警实体类
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> save(EarlyWarning earlyWarning);

    /**
     * 删除
     *
     * @param ids id集合
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> remove(List<Long> ids);

    /**
     * 编辑
     *
     * @param earlyWarning 能效预警实体类
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> edit(EarlyWarning earlyWarning);

    /**
     * 分页
     *
     * @param earlyWarning 能效预警实体类
     * @param page         页码
     * @param size         数量
     * @return {@link ResponseResult}<{@link PageInfo}<{@link EarlyWarning}>>
     */
    ResponseResult<PageInfo<EarlyWarning>> page(Integer page, Integer size, EarlyWarning earlyWarning);

    /**
     * 根据id获取能效预警信息
     *
     * @param id 能效预警id
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> getById(Long id);
}
